package com.jcf.springboot;

import org.springframework.amqp.core.Queue;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@EnableDiscoveryClient
@SpringBootApplication
public class MailCinemaApplication {

  public static void main(String[] args) {
    SpringApplication.run(MailCinemaApplication.class, args);
  }

  @Bean
  public Queue queue(){
    return new Queue("mail.welcome");
  }
}
